import './assets/main.css'

import { createApp } from 'vue'
import { createPinia } from 'pinia'
import Vant from 'vant'
import 'vant/lib/index.css'

import App from './App.vue'
import router from './router'

import './permission.js'
import './utils/util.js'

import Vconsole from 'vconsole'

const app = createApp(App)

if (import.meta.env.MODE !== 'production') {
    const vConsole = new Vconsole()
    app.use(vConsole)
}

app.use(createPinia())
app.use(router)
app.use(Vant)
app.mount('#app')
